package logconfig

import (
	"os"

	l4g "github.com/alecthomas/log4go"
)

var (
	// Log4 default
	Log4 l4g.Logger
)

func init() {
	cfgfilename := "log4config1.xml"
	Log4 = l4g.NewDefaultLogger(l4g.DEBUG)

	if _, err := os.Lstat(cfgfilename); err == nil {

		Log4.LoadConfiguration(cfgfilename)
	}

	//	defer log4.Close()
}
